package no.ntnu.item.ttm4115.termproject.discussionagent;

import javax.swing.tree.DefaultTreeModel;
import no.ntnu.item.ttm4115.termproject.playeragent.gui.MeetingPlaceGUI;
import javax.swing.tree.TreeNode;
import no.ntnu.item.ttm4115.termproject.discussionagent.gui.DiscussionAgentGUI;
import java.lang.String;
import no.tellu.common.javaframe.ActorAddress;
import java.util.HashMap;
import no.tellu.common.actorframe.ActorSM;

public class DiscussionAgentSM extends ActorSM {


    public ActorAddress myGroupAgent;
    public HashMap playersInDiscussion;
    public String playerName;
    public TreeNode rootNode;
    public DiscussionAgentGUI disGUI;
    public DefaultTreeModel jTreeDiscussionModel;
    public MeetingPlaceGUI mainFrame;
    public String groupName;
    public ActorAddress tempSenderRole;
    public TreeNode tempRootNode;
    public String tempXmlRootNode;
    public String tempXMLEnume;
    public String tempXMLDmtn;


    /*
     * This method initializes the fields of the state machine.
     * You can edit this method inside the method body.
     * When the method is generated again, your part is copied.
     * Do not add any other methods in this class, they are not copied.
     */
    public void initialize(){
        playersInDiscussion= new HashMap();
        tempRootNode = new javax.swing.tree.DefaultMutableTreeNode(new no.ntnu.item.ttm4115.termproject.discussionagent.gui.Discussion("Discussions","0",null));
        rootNode = new javax.swing.tree.DefaultMutableTreeNode(new no.ntnu.item.ttm4115.termproject.discussionagent.gui.Discussion("Discussions","0",null));
    }
}
